/************************************************************
 * Project Name		[Thinking_In_Java]
 * File Name     	[pkg_02_oop.Example_11_Interface.java]
 * Creation Date 	[21-Jun-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ************************************************************/
package pkg_02_oop;

/**
 * 接口
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public interface Example_11_Interface {

	/**
	 * start method
	 */
	public abstract void start();

	/**
	 * run method
	 */
	public abstract void run();

	/**
	 * stop method
	 */
	public abstract void stop();
}

class Animal implements Example_11_Interface {

	public void run() {
		System.out.println("animal is running");
	}

	public void start() {
		System.out.println("animal prepare to run");
	}

	public void stop() {
		System.out.println("animal stoped");
	}

}

class Car implements Example_11_Interface {

	public void run() {
		System.out.println("4WD is running");
	}

	public void start() {
		System.out.println("4WD is started");
	}

	public void stop() {
		System.out.println("4WD stopped");
	}

}
